package com.hqyj.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author rock
 * @since 2024-10-11 01:33:11
 */
@Getter
@Setter
@TableName("goods_info")
public class GoodsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品编号
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 商城价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 品牌id
     */
    @TableField("brand_id")
    private Integer brandId;

    /**
     * 商家ID
     */
    @TableField("seller_id")
    private Integer sellerId;

    /**
     * 商品主题描述
     */
    @TableField("title")
    private String title;

    /**
     * 图片地址
     */
    @TableField("src")
    private String src;

    /**
     * 商品类型: 1 男装 2 女装 3 鞋袜
     */
    @TableField("pro_type")
    private Integer proType;

    /**
     * 库存数量
     */
    @TableField("stock_num")
    private Integer stockNum;

    //品牌对象
    @TableField(exist = false)
    private Brand brand;

    //商家对象
    @TableField(exist = false)
    private Saller saller;


}
